package com.runen.wnhz.runen.common.utils;

import okhttp3.OkHttpClient;

public class OkHttpUtils {

    private static OkHttpClient okHttpClient = new OkHttpClient.Builder().retryOnConnectionFailure(true).build();


    public static OkHttpClient getOkHttpClient() {
        if(okHttpClient != null) {
            return okHttpClient;
        }else{
            return new OkHttpClient.Builder().retryOnConnectionFailure(true).build();
        }
    }
}
